
import './index.less';
import {WeaAlertPage,WeaLocaleProvider} from 'ecCom';
import {Icon} from 'antd';
const getLabel = WeaLocaleProvider.getLabel;

export default class Main extends React.Component {
	constructor(props) {
		super(props);
	}
	
	render(){
		const {loading = false} = this.props;
		return (
			<div className="report-echart-alert">
				{loading ?
					<WeaAlertPage ecId={`${this && this.props && this.props.ecId || ''}_WeaAlertPage@tda36f`} icon={<Icon ecId={`${this && this.props && this.props.ecId || ''}_Icon@0jtv6q`} type="loading" />}>
						<div className="report-echart-alert-tipinfo">
							{getLabel(384187,'加载中...')}
						</div>
					</WeaAlertPage>
					:
					<WeaAlertPage ecId={`${this && this.props && this.props.ecId || ''}_WeaAlertPage@ezkggc`} icon="icon-coms-blank">
						<div className="report-echart-alert-tipinfo">
							{getLabel(83553,'暂无数据')}
						</div>
					</WeaAlertPage>
				}
			</div>
		)
	}
}